﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TicketSellerService;

namespace FlightSearchServer
{
    public class FlightSearchService : IFlightSearchService
    {
        public int registerVendor(string vendorName, string address)
        {
            Console.WriteLine( String.Format( "Registering vendor {0} with address {address}"));
            return 0;
        }

        public AvailableFlights flightSearch(string source, string destination, DateTime date)
        {
            Console.WriteLine( String.Format( "Searching for flight from {0} to {1} on {2}", source, destination, date));
            return null;
        }

        public TicketReservation flightReserve(string flightNum, DateTime date)
        {
            Console.WriteLine("Reserving flight {0} on date {1}", flightNum, date);
            return null;
        }

        public string reservationCancel(string reservationId)
        {
            Console.WriteLine("Canceling reservation with id {0}", reservationId);
            return "Ok";
        }
    }
}